<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['异常警报','短信发送记录']" icon="fa fa-exclamation-circle" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span><h2>短信发送记录</h2></header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">
							<div class="left page-header-btn">
								<!--<div class="top_module">
									<span class="module_text">公司名称</span>
									<div class="company_tree" style="display: inline-block;vertical-align: middle;">
										<div class="clearfix" style="position: relative;">
											<div class="s_hover_box s_fix_radius">
												<input class="form-control tree_company_input"  id="company" name="selectedCompanyName" (input)="companySearch()" autocomplete="off" [(ngModel)]='selectedCompanyName' (click)="companyClick()" type="text" placeholder="请选择或输入关键字" />
												<div class="s_del_icon" (click)='delText()'>x</div>
											</div>
											<div class="s_tree_box" id="tree_box">
												<div class="vision_tree" id="vision_tree">
													<div id="tree"></div>
												</div>
											</div>
										</div>
							      	</div>
								</div>-->
								<div class="selectDate top_module">
									<div class="input-daterange input-group s_selected_time_box s_hover_box">
										<input type="text" [(ngModel)]='startTime' class="form-control s_selected_time" id="datetimepicker1"  autocomplete="off" placeholder="选择开始时间"/>
										<span class="s_selected_time_spe">至</span>
										<input type="text" [(ngModel)]='endTime' class="form-control s_selected_time" id="datetimepicker2"  autocomplete="off" placeholder="选择结束时间"/>
										<div class="s_del_icon" (click)='del_date()'>x</div>
									</div>
									
								</div>
								<!--<div class="top_module" style="border: 1px solid #ccc;overflow: hidden;border-radius: 4px;">
									<span class="module_text" style="border-radius: 0;">警报类型
									</span><select name="" [(ngModel)]='sortType' class="form-control inline_block" style="width: 150px;height: 26px;padding: 0 12px;line-height: 26px;border: none;vertical-align: top;">
										<option value="">全部</option>
										<option value="1">上货不规范警报</option>
										<option value="2">。。。。。</option>
									</select>
								</div>-->
								
								<button  type="button"  class="btn btn-primary" (click)="table_search()">查询</button>
							</div>
							<div class="right top-search"  style="width: 240px;">
								<input type="text" [(ngModel)]="searchKey" (change)="table_search()" class="search-input" placeholder="警报消息、通知类型、通知主体...">
								<span class="top-search-box">
							        <button class="top-search-btn" type="button" (click)="table_search()"> <i class="fa fa-search"></i></button>
							    </span>
							</div>
						</div>
						<div class="table_scroll">
							<table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
								<thead>
									<tr>
										<th>警报类型</th>
										<!--<th>警报消息</th>-->
										<th>警报时间</th>
										<th>通知类型</th>
										<th>通知主体</th>
										<th>通知状态</th>
										<th>通知内容</th>
										<th>通知时间</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<tr *ngFor="let row of tableData" >
										<td>
											<span *ngIf="row.alertType === 1">上货不规范警报</span>
											<span *ngIf="row.alertType === 2">卸货异常警报</span>
											<!--<span *ngIf="row.alertType === 0"></span>-->
										</td>
										<!--<td>{{row.alertMessage}}</td>-->
										<td>{{row.alertDate}}</td>
										<td>
											<span *ngIf="row.informType === 1">短信</span>
											<span *ngIf="row.informType === 2">邮件</span>
										</td>
										<td>{{row.informBody}}</td>
										<td>
											<span *ngIf="row.informStatus === 1" class="green">发送成功</span>
											<span *ngIf="row.informStatus === 0" class="red">发送失败</span>
										</td>
										<td>{{row.sendMessage   }}</td>
										<td>{{row.informDate}}</td>
										<td>
											<button type="button" (click)="del_row(row)">删除</button>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="table-fix clearfix">
							<paginator [totalRecords]="totalCount"
						           [rows]="pageSize"
						           [currentPage]="curPage - 1"
						           (onPageChange)="paginate($event)">
							</paginator>
							<button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>
	
</div>